/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Mercury.Entity.SystemModels;

namespace Mercury.Entity.DomainModels
{
    [Entity(TableCnName = "检化验",TableName = "CheckList",DetailTable =  new Type[] { typeof(CheckListDetailed)},DetailTableCnName = "检化验明细")]
    public partial class CheckList:BaseEntity
    {
        /// <summary>
       ///主键
       /// </summary>
       [Key]
       [Display(Name ="主键")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Id { get; set; }

       /// <summary>
       ///化验单号
       /// </summary>
       [Display(Name ="化验单号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string CheckListNo { get; set; }

       /// <summary>
       ///物料（产品）号
       /// </summary>
       [Display(Name ="物料（产品）号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialNo { get; set; }

       /// <summary>
       ///物料（产品）名称
       /// </summary>
       [Display(Name ="物料（产品）名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MaterialName { get; set; }

       /// <summary>
       ///工艺步骤
       /// </summary>
       [Display(Name ="工艺步骤")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Step { get; set; }

       /// <summary>
       ///批号
       /// </summary>
       [Display(Name ="批号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string BatchNo { get; set; }

       /// <summary>
       ///获取时间
       /// </summary>
       [Display(Name ="获取时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? GetTime { get; set; }

       /// <summary>
       ///总结果
       /// </summary>
       [Display(Name ="总结果")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Result { get; set; }

       /// <summary>
       ///删除标识
       /// </summary>
       [Display(Name ="删除标识")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? DeletionFlag { get; set; }

       /// <summary>
       ///检验类别
       /// </summary>
       [Display(Name ="检验类别")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Category { get; set; }

       /// <summary>
       ///物料或产品Id
       /// </summary>
       [Display(Name ="物料或产品Id")]
       [MaxLength(50)]
       [Column(TypeName="varchar(50)")]
       [Editable(true)]
       public string MaterialId { get; set; }

       [Display(Name ="检化验明细")]
       [ForeignKey("CheckListId")]
       public List<CheckListDetailed> CheckListDetailed { get; set; }

    }
}